package com.neulogistics.infrastructure.common.rpc.client;

import com.neulogistics.infrastructure.common.serviceresult.BaseResponse;
import com.neulogistics.infrastructure.common.serviceresult.ResultUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@FeignClient("TransferCenter")
public interface TransferCenterClient {
    @GetMapping("/transferCenter/transferOrder/getOrderIdByTransfer/{transferId}")
    BaseResponse<Long> getOrderIdByTransfer(@PathVariable(value = "transferId") Long transferId);

    @PostMapping("/transferCenter/transferOrder/getSourceWarehouseId")
    BaseResponse<Integer> getSourceWarehouseId(Object GetSourceWarehouseIdCommand);
}
